﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus;

namespace BingYing.SAAS.SystemModel.Application.Events
{
    /// <summary>
    /// 管理员登录事件处理
    /// </summary>
    public class LoginEventHandle : ILocalEventHandler<LoginEventArg>,ITransientDependency
    {
        /// <summary>
        /// 事件处理
        /// </summary>
        /// <param name="eventData"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public Task HandleEventAsync(LoginEventArg eventData)
        {
            Trace.WriteLine($"管理员：{eventData.Manager.UserName}登录成功");
            return Task.CompletedTask;
        }
    }
}
